package ARRAY_TrinhCongDoc03;


public class model {
	public int Tmax(int[] a1){
		
		int max01 = 0;
		for (int i = 0; i <a1.length;i++){
			if (a1[i]>max01){
				max01 = a1[i];
			}
		}
		return max01;
	}
	public int Tmin(int[] a1){
		int min01 =0;
		for (int i = 0; i<a1.length;i++){
			if(a1[i]<min01){
				min01 = a1[i];

			}
		}
		return min01;
	}
}
